#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <time.h>
#include <unistd.h>
#include <fcntl.h>
#include "errsys.h"

int main(int argc, char **argv)
{
	int a=12345,b=87654;
//	printf("%d\n",a,b,a,b,a);
	printf("%*d\n",a,b,a,b,b);

	printf("%-8d %-6d\n",a,b);
	printf("%-8o %-6o\n",a,b);
	printf("%-8x %-6x\n",a,b);
	
	printf("%8d %6d\n",a,b);
	printf("%8o %6o\n",a,b);
	printf("%8x %6x\n",a,b);

	printf("%ld %ld\n",a,b);
	printf("%lo %lo\n",a,b);
	printf("%lx %lx\n",a,b);

	char *s = "Hello,World!";
	printf("%*.*s\n",12,5,s);
	char *me = "WangLijun";
	printf("%-10.4s***\n", me);

	return 0;
}

